import instance from "./request";

export function login(loginBody) {
    return instance.request({
        url: '/login',
        method: 'POST',
        data: loginBody
    })
}

export function logout() {
    return instance.request({
        url: '/logout',
        method: 'post'
    })
}